package factory.simple_factory;

public class FactoryPattern {

    public static void main(String[] args) {
        SimplePizzaFactory factory = new SimplePizzaFactory();

        PizzaStore pizzaStore = new PizzaStore(factory);

        pizzaStore.orderPizza("cheese");
        System.out.println("==========");

        pizzaStore.orderPizza("greek");
        System.out.println("==========");

        pizzaStore.orderPizza("pepperoni");
        System.out.println("==========");

        pizzaStore.orderPizza("clam");
        System.out.println("==========");

        pizzaStore.orderPizza("veggie");
        System.out.println("==========");
    }

}
